import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import principle from '@/components/principle'
import getPoints from '@/components/getPoints'
import pointsIntroduction from '@/components/pointsIntroduction'
import pointsRecord from '@/components/pointsRecord'
import questionOfSafety from "../components/questionOfSafety";
import exchangePoints from "@/components/exchangePoints";
import excPointsRec from "@/components/excPointsRec";
import detail from "../components/detail";
import exchange from "../components/exchange";
import exchangeSuccess from "../components/exchangeSuccess";
import orderInfo from "../components/orderInfo";
import rankingList from "../components/rankingList";
import rankIntroduction from "../components/rankIntroduction";
import more from "../components/more";
import draw from "../components/draw";
import me from "../components/me";
import selfRank from "../components/selfRank";
import feedback from "../components/feedback";
import suggest from "../components/suggest";
import ticket from "../components/ticket";
import ticketIntro from "../components/ticketIntro";


Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'principle',
      component: principle
    },
    {
      path: '/getPoints',
      name: 'getPoints',
      component: getPoints,
    },
    {
      path:'/getPoints/pointsIntroduction',
      name:'pointsIntroduction',
      component:pointsIntroduction
    },
    {
      path:'/getPoints/pointsRecord',
      name:'pointsRecord',
      component:pointsRecord
    },
    {
      path:'/getPoints/questionOfSafety',
      name:'questionOfSafety',
      component:questionOfSafety
    },
    {
      path:'/exchangePoints',
      name:exchangePoints,
      component:exchangePoints,
    },
    {
      path:'/exchangePoints/excPointsRec',
      name:excPointsRec,
      component:excPointsRec,
    },
    {
      path:'/exchangePoints/detail',
      name:detail,
      component:detail,
    },
    {path:'/exchangePoints/exchange',
      name:exchange,
      component:exchange
    },
    {
      path:'/exchangePoints/detail/exchangeSuccess',
      name:exchangeSuccess,
      component:exchangeSuccess
    },{
    path:'/exchangePoints/detail/orderInfo',
      name:orderInfo,
      component:orderInfo,
    },
    {
      path:'/rankingList',
      name:rankingList,
      component:rankingList,
    },
    {
    path:'/rankingList/rankIntroduction',
      name:rankIntroduction,
      component:rankIntroduction
    },
    {
    path:'/rankingList/more',
      name:more,
      component:more
    },
    {
      path:'/rankingList/draw',
      name:draw,
      component:draw
    },
    {
      path:'/me',
      name:me,
      component:me
    },
    {
      path:'/me/selfRank',
      name:selfRank,
      component:selfRank
    },
    {
      path:'/me/feedback',
      name:feedback,
      component:feedback
    },
    {
      path:'/me/feedback/suggest',
      name:suggest,
      component:suggest,
    },
    {
      path:'/me/ticket',
      name:ticket,
      component:ticket,
    },
    {
      path:'/me/ticket/ticketIntro',
      name:ticketIntro,
      component:ticketIntro
    }
  ]
})
